home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Technical Documentation / Mac Tech Notes (DocViewer) / Devices / TN-Devices / TN-Devices.rsrc / TOC#_1000 < prev   
Encoding:
Text File  |  1994-07-24  |  11.0 KB  |  5 lines

  1. R0DV 1 - Absolute Pointing Device Memory Structure DefinitionsFigure 1 Format of a Longword  Header,Figure 2 Format of Header’s First Longword  -Figure 3 Format of Header’s Second Longword   Cursor Block2Figure 4 Format of Cursor Block’s First Longword  3Figure 5 Format of Cursor Block’s Second Longword  2Figure 6 Format of Cursor Block’s Third Longword  3Figure 7 Format of Cursor Block’s Fourth Longword  2Figure 8 Format of Cursor Block’s Fifth Longword  2Figure 9 Format of Cursor Block’s Sixth Longword  Figure 10 Attitude MatrixFigure 11 X-Tilt and Y-TiltNotesFurther Reference:/DV 2 - _AddDrive, _DrvrInstall, and _DrvrRemove    _AddDrive _DrvrInstall _DrvrRemove
  2. InterfacesDV 3 - Boot BlocksChanging System Heap SizeSecondary Sound and Video PagesFurther Reference:DV 4 - Bus Error Handlers IntroductionWhat Is a Bus Error?What Is a Bus Error Handler?*How Does the Bus Error Handler Chain Work?+What Is the Model for When Bus Errors Occur. . . And Who Handles Them?BAdding Code to and Removing Code From the System Bus Error Handler4When to Install Code to the System Bus Error Handler9What Should a NuBus Device Driver’s Bus Error Handler Do?#Why Should I Have Declaration ROMs?9Creating a Workaround for Dealing With Bus Error Handlers<Debugging Hints for Writing a Bus Error Handler for the ’040Further Reference:DV 5 - Drive Queue ElementsCreating New DrivesFurther Reference:(DV 6 - Finding Drivers in the Unit TableFurther Reference:9DV 7 - Forcing Floppy Disk Size to be Either 400K or 800KFrom MPW Pascal: From MPW C:Further Reference:DV 8 - Hard Disk HackingFurther Reference:FDV 9 - High-Level Control and Status Calls: When a Good Call Goes Bad Further Reference:4DV 10 - Monitor Depth : Gimmie Depth Or Gimmie DeathHistoric Novella    The CallsFurther Reference:!DV 11 - Opening the Serial DriverPascalCFurther Reference:DV 12 - Our Checksum BouncedA Bit of History*Drivers That Check In, But Don’t Check Out6Just When You Thought It Was Safe To Call _SysEnvirons    To Sum UpFurther Reference:DV 13 - _PBClose the Barn Door IntroductionTransformationsFurther Reference:DV 14 - SCSI BugsROM boot code problems'Problems with ROM SCSI Manager routines:Problems with the SCSI Manager that haven’t been fixed yetOther SCSI Manager IssuesHardware in the SCSIChanges in SCSI for SE and II(To report other bugs or make suggestionsFurther Reference:DV 15 - SCSI Termination    )Why Is the Terminator After Sarah Connor?$Figure 1—Old-Style Terminator (Gray)How to Stop the Terminator%Figure 2—New-Style Terminator (Black)External TerminationYou’re TerminatedMacintosh Quadra TerminationPowerBook TerminationPowerBook Duo Termination'Termination Outlined for Each MacintoshTermination on Apple PrintersFurther Reference:*DV 16 - Serial GPi (General-Purpose Input)Reading GPi (The Easy Part)4Validating and Configuring GPi (A Little Bit Harder)Further Reference:3DV 17 - Sony Driver : What Your Sony Drives For YouPrime (Read & Write) Calls
  3. Control CallsKill I/O (csCode=1)Verify Disk (csCode=5)Format Disk (csCode=6)Eject Disk (csCode=7)Set Tag Buffer (csCode=8)Figure 1–File TagsTrack Cache Control (csCode=9)&Return Physical Drive Icon (csCode=21)Figure 2–Physical Drive IconsReturn Media Icon (csCode=22)Figure 3–Media Icons%Figure 4–Return Drive Info in csParam(Diagnostic Raw Track Dump (csCode=18244)*Figure 5–clockBitsBuffer versus dataBuffer Status CallsReturn Format List (csCode=6)3Figure 6–Format Information From Return Format ListDrive Status (csCode=8)Further Reference:%DV 18 - CD-ROM Notes (Most Excellent)Multiple CD-ROM Drives,Device Manager Routines and Parameter BlocksBinary Coded DecimalBlock Addresses+Foreign File Access And The 'sysz' Resource=Figure 1–Apple CD-ROM Driver and Foreign File Access SoftwareMixing Data and AudioFurther Reference:.DV 19 - Drivers & DAs in Need of (a Good) TimeSee Jane’s Heap, See accRun…'“Houston, We’ve Got a Re-Entry Problem”PascalCOne More Thing…Further Reference:DV 21 - Serial PollProcFor MIDI Consumption OnlyWhat the Problem Is
  4. BackgroundFindingsWhat the Solution Is(What Is a PollProc and How Does It Work?PollProc Sample CodeDV 22 - CD-ROM Driver CallsOptical Positioning TypeTrack Control FieldAudio Play ModeMaking a High Level Driver CallMaking a Low Level Driver CallDriver SummaryNameSupported Control CallsSupported Status CallsControl Call Descriptions
  5. KillIO (1)VerifyTheDisc (5)FormatTheDisc (6)EjectTheDisc (7)GetDriveIcon (21)FFigure 1: Icon returned by GetDriveIcon and GetMediaIcon Control callsGetMediaIcon (22)DriveInfo (23) accRun (65)]ModifyPostEvent (76)ChangeBlockSize (79)UserEject (80)SetPollFreq (81)
  6. ReadTOC (100) ReadQ (101)ReadHead (102)AudioTrackSearch (103)AudioPlay (104)AudioPause    (105)AudioStop (106)AudioStatus (107)AudioScan (108)0AudioControl (109) [not available on AppleCD SC]+ReadMCN (110) [not available on AppleCD SC],ReadISRC (111) [not available on AppleCD SC]3ReadAudioVolume (112) [not available on AppleCD SC]GetSpindleSpeed (113)SetSpindleSpeed (114)"ReadAudio (115) [AppleCD 300 only](ReadAllSubcodes (116) [AppleCD 300 only]Status Call DescriptionsDriveStatus    (8)Get2KOffset (95)GetDriveType (96)WhoIsThere (97)GetBlockSize (98)Further Reference:DV 23 - Driver Education,Caveat—Low Memory and System Data StructuresDriven to Tears-Figure 1—Basic Device Manager Data StructuresRoutine MaintenanceWhat the Glue DoYes, We’re Open*That’s Great, But What Are You Driving At?Immediate AsynchronicityYou Can Feel It When You DriveSorry, We’re Closed#Get Outta the Way, Ya Sunday Driver&What the Heck Does JIODone Do, Anyway?Driving the Point Home;Crucial References for Writing a Macintosh SCSI Disk DriverSCSI Development Package    StandardsInside Macintosh, Volume IIInside Macintosh, Volume IVInside Macintosh, Volume VInside Macintosh, Volume VI&Guide to the Macintosh Family HardwareMacintosh Technical NotesFurther Reference:DV 24 - Fear No SCSI IntroductionnWhat Are the Bus Phases in a SCSI Transaction and the Possible Errors and Information That May Be Passed Back?1. BUS FREE phase2. ARBITRATION phase3. SELECTION phase4. RESELECTION phase5. COMMAND phase
  7. 6. DATA phase7. STATUS phase8. MESSAGE phase9. BUS FREE phaseExample of SCSIWrite>What Must I Do for My SCSI Driver to Work With Virtual Memory?*Is SCSI Different on the Macintosh Quadra?1What Is the Best Way to Tell if a Device Is Busy?0What Is the Best Way to Tell if the Bus Is Busy?,How Much Time Should There Be Between Bytes?
  8. ConclusionFurther Reference:DV 505 - CD-ROM Q&As2CD-ROM drivers and Photo CD or Foreign File Access-Original AppleCD SC can’t read Photo CD discs"Reading audio data off an audio CDCD-ROM and File SharingFile Sharing and CD-ROM discs3Using the Macintosh ISO 9660 FST with another drive7Identifying a CD-ROM in the drive queue or volume queue-120 (dirNFErr) on a Macintosh(Avoiding invalid boot blocks on a CD-ROM)Why does my CD-ROM take so long to mount?DV 510 - Device Driver Q&As-Backlight driver save brightness control call)Calling one Macintosh driver from another*Installing a Macintosh driver at INIT time2How Macintosh Standard File determines device type>Looking up Macintosh drivers installed from other applications?How to make sure inactive application VBL tasks always get timeDV 515 - Device Manager Q&As"System 7.0 and SetChooserAlert bug@PBRead/PBWrite instead of FSRead/FSWrite after asynchronous call1Ensuring that Macintosh driver isn’t open already6Determining if a file is read from CD-ROM or hard disk9Accessing a Macintosh driver resource fork at accRun time9DAs in background under System 7.0 lack UnitTable entriesJMP or JSR When Calling IODone*New info on Macintosh Device Manager calls?Given a Macintosh gdRefNum, how can I find the associated slot?Macintosh journaling mechanism3How do I support locked and ejectable SCSI devices?(DV 520 - Device Management Overview Q&As9Extending Macintosh mouse location beyond screen boundary9System 7.0, Disk First Aid 7.0, and Hard Disk Setup 2.0.40Eliminating Macintosh VBL animated cursor ghosts$Macintosh interrupt routines and I/O.How the Macintosh mouse/cursor mechanism works,Information on the IOP Manager not available1How to set the Macintosh cursor at interrupt timeDV 525 - Disk Driver Q&As=Logical SCSI block numbers of a Mac partition on a SCSI drive,Macintosh RAM disk drive queue checksum flag6Macintosh PRAM and determining disk write-verify stateMacintosh csCode 100,System 7 disk driver reentrancy requirements&Low-level Macintosh floppy disk access4VBL tasks under System 7 with virtual memory running1Macintosh disk drivers and System 7 compatibility!Macintosh Finder eject on Unmount5Logical-to-physical sector information for 800K disks Macintosh RAM disk driver tricks9How to determine if a disk drive supports ejectable mediaDV 526 - Docking Manager Q&As7DockingDispatch trap supervisor mode bug and workaround!dockHardwareAttr dockHasVideo bitdockingAttr dockingStation bit'dockSoundAttr dockHeadphoneAttached bit&DV 530 - Graphics Devices Manager Q&As*Changing monitor depth from an applicationNewGWorld error code -151;GWorld direct access and graphics cards with cached GWorlds;Drawing dimmed outline across screens with different depths,Drawing into GWorld after using UpdateGWorld%UpdateGWorld dithering bug workaround6Determining if a file is read from CD-ROM or hard disk9Accessing a Macintosh driver resource fork at accRun time9DAs in background under System 7.0 lack UnitTable entries5Macintosh LC SIntInstall & SLOTIRQ Interrupt HandlingJMP or JSR When Calling IODone*New info on Macintosh Device Manager calls?Macintosh Device Manager handles queuing and asynchronous calls?Given a Macintosh gdRefNum, how can I find the associated slot?Macintosh journaling mechanism3How do I support locked and ejectable SCSI devices?DV 540 - Modem Q&As#PowerBook FAX Modem and header lineDV 545 - Power Manager Q&As-Think C SetWUTime glue problem and workaround5Conditions for networked PowerBook not going to sleepSetWUTime documentation fix=Power Manager BatteryStatus returns voltage & charger details<How to notify a device driver when Macintosh Portable sleepsDV 550 - SCSI Manager Q&As4Documentation describing VM/SCSI driver requirementsSCSI drivers and virtual memoryMacintosh SCSI reselection/Where to get Macintosh SCSI Manager sample codeDV 555 - Serial Driver Q&As"Replacing Macintosh serial driversASerial driver bug keeps DTR from negating across CloseDriver call?Use serShk instead of SerHShake for serial hardware handshaking3Close Macintosh serial driver after OpenDriver call4New Macintosh serial driver status and control calls@Separate transmit & receive baud rates for Macintosh serial port5Macintosh serial driver and synchronous communication%Macintosh serial hardware handshaking7Serial driver DCE dCtlFlags and serial port arbitration0Specifying a specific Macintosh serial baud rate@Opening the Serial Driver more than once and the PortInUse errorDV 560 - Slot Manager Q&As*Apple-defined sResource sRsrcHWDevID entry*How to tell if Slot Manager is implementedChecking for sRsrcInfo8Detecting a NuBus or PDS card in the Macintosh IIsi slot